package Controlador;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.SwingUtilities;


import Modelo.Liga;
import Vista.JFPrincipal;

public class ControladorPrincipal implements ActionListener{

	
	
	private JFPrincipal ventanaPrincipal; 
	private Liga liga;
	
	
	public ControladorPrincipal() {
		ventanaPrincipal= new JFPrincipal();
		ventanaPrincipal.setLocationRelativeTo(null);
		ventanaPrincipal.setVisible(true);	
		ventanaPrincipal.ActionListener(this);
		liga = new Liga();
	}
	
	
	@Override

		
		public void actionPerformed(ActionEvent e){
		
			if (e.getActionCommand().equals("Arbitro")){
				new ControladorArbitro();
			
			}else if (e.getActionCommand().equals("Equipo")){
				new ControladorEquipo();
			}
			/*else if (e.getActionCommand().equals("GENERAR PARTIDOS"))
				
			{
				new ControladorLiga();
			}
		*/
		}
	}		
            /*else if (e.getActionCommand().equalsIgnoreCase("CONSULTAR CALENDARIO"))
				
			{
				new ControladorCalendario();
			}
			
			else if (e.getActionCommand().equalsIgnoreCase("TABLA DE POSICIONES"))
				
			{
				new ControladorTablaPosiciones();
			}
		*/
		




